package com.bangmai.listener;

import java.util.Map;

import org.apache.log4j.Logger;

import com.bangmai.model.MqOrder;
import com.bangmai.service.CustomsService;

public class TaskCommodityinspection  implements Runnable{
	Logger logger=Logger.getLogger(TaskCommodityinspection.class);
	private CustomsService customsService;
	private String order_id;
	public TaskCommodityinspection(CustomsService customsService, String order_id) {
		super();
		this.customsService = customsService;
		this.order_id=order_id;
	}

@Override
	public void run() {
		// TODO Auto-generated method stub
		try {
			logger.info("启动商检流程...");
			customsService.createAndSendPacket(2, order_id);
		} catch (Exception e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		}
		
	}

}
